package com.tsd.system.service;

import com.tsd.core.vo.PageBean;
import com.tsd.system.entity.SysDataAuthExt;
import com.tsd.system.entity.SysDataAuthGroup;
import com.tsd.system.entity.SysDataAuthGroupExt;
import com.tsd.system.entity.SysUser;

import java.util.List;
import java.util.Map;

/**
 * 描述：SysDataAuthGroup服务实现层接口
 *
 * @author admin
 * @date 2022/11/15 15:12:44
 */
public interface SysDataAuthGroupService {

    /**
     * 描述：根据id获取SysDataAuthGroup
     *
     * @param id
     */
    SysDataAuthGroup getSysDataAuthGroupById(Long id) throws Exception;

    /**
     * 描述：根据sid获取SysDataAuthGroup
     *
     * @param sid
     */
    SysDataAuthGroupExt queryBySid(String sid) throws Exception;

    /**
     * 描述：根据sid列表删除SysDataAuthGroup
     *
     * @param list
     */
    void deleteSysDataAuthGroups(List<String> list, SysUser opUser) throws Exception;

    /**
     * 描述：保存或更新SysDataAuthGroup
     *
     * @param record
     * @param opUser
     */
    void saveSysDataAuthGroup(SysDataAuthGroup record, SysUser opUser) throws Exception;

    void saveSysDataAuthGroup(SysDataAuthExt record, SysUser opUser) throws Exception;

    /**
     * 描述：根据params分页查询SysDataAuthGroup
     *
     * @param params
     * @param page
     */
    List<SysDataAuthGroupExt> findSysDataAuthGroups(Map<String, Object> params, PageBean page) throws Exception;

    /**
     * 描述：根据params分页查询SysDataAuthGroup
     *
     * @param params
     */
    List<SysDataAuthGroupExt> findSysDataAuthGroups(Map<String, Object> params) throws Exception;
}